<div class="zs-body" data-ng-init="formInit('gzclda', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzclda');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">固定资产</a>
            <i class="right-arr"></i>
            <a href="javascript:;">车辆档案</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addCldaRow();"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzclda', gzclda.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzclda')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">

            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="车辆型号" ng-model="gzclda.queryObject['sclxh:like']"/>
                </span>

            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="车牌号" ng-model="gzclda.queryObject['scph:like']"/>
                </span>
                <span>  车辆状态</span>
                <span class="search-warpper">
                	<ag-Combobox style="width:175px;height:28px;"
                        para="{	uDictionary:true,
                        		dictionary:'p_clzt'}"
                         ng-model="gzclda.queryObject['clzt:=']"/>
            	</span>
            </div>
            <div class="operation item" style="margin-top:7px;">
            	<input type="button" class="zs-btn orange" value="查询" 
            		ng-click="loadData('gzclda')"/>
                <!--<a class="ope-1" ng-click="loadData('gzclda')"></a>
                <a class="ope-2"></a>-->
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzclda','allCheckbox');" />
                                    </th>
								<!--	<th>唯一编号</th>-->
									<th>车辆型号</th>
									<th>座次</th>
									<th>车牌号</th>
									<th>车辆状态</th>
								<!--	<th>保修期限</th>
									<th>采购日期</th>
									<th>采购价格</th>
									<th>采购部门</th>
									<th>采购人</th>
									<th>采购原因</th>
									<th>联系方式</th>-->
									<!--<th>使用情况</th>
									<th>维修情况</th>-->
								<!--	<th>油卡充值情况</th>-->
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzclda.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzclda',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  唯一编号 -->
            						<!--<td>
                                        <a ng-click="editRow('gzclda',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
									<!--  车辆型号 -->
            						<td>
                                        <a ng-click="editRow('gzclda',r) && openWindow('edit');">
                                            <label ng-bind="r.sclxh"></label>
                                        </a>
                                   </td>
									<!--  车辆信息 -->
            						<td>
                                        <a ng-click="editRow('gzclda',r) && openWindow('edit');">
                                            <label ng-bind="r.sclxxName"></label>
                                        </a>
                                   </td>
									<!--  车牌号 -->
            						<td>
                                        <a ng-click="editRow('gzclda',r) && openWindow('edit');">
                                            <label ng-bind="r.scph"></label>
                                        </a>
                                   </td>
                                   <!--  车牌状态 -->
            						<td>
                                        <a ng-click="editRow('gzclda',r) && openWindow('edit');">
                                            <label ng-bind="r.clztName"></label>
                                        </a>
                                   </td>
									<!--  使用情况 -->
            						<!--<td>
                                        <a ng-click="editRow('gzclda',r) && openWindow('edit');">
                                            <label ng-bind="r.ssyqk"></label>
                                        </a>
                                   </td>-->
									<!--  维修情况 -->
            						<!--<td>
                                        <a ng-click="editRow('gzclda',r) && openWindow('edit');">
                                            <label ng-bind="r.swxqk"></label>
                                        </a>
                                   </td>-->
									<!--  油卡充值情况 -->
            						<!--<td>
                                        <a ng-click="editRow('gzclda',r) && openWindow('edit');">
                                            <label ng-bind="r.sykczqk"></label>
                                        </a>
                                   </td>-->
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzclda'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="车辆档案编辑" width='800px' height='500px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!--<tr>
                                <td class="text" width="20%">唯一编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclda.editRow.id" class="zs-input" />
                                </td>
                            </tr>-->
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>车辆型号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclda.editRow.sclxh" class="zs-input" />
                                	<span ng-show="false"><input hide-novalidate="true" 
                                		alias="车辆型号" required 
                                		ng-model="gzclda.editRow.sclxh"
                                		name="form_sclxh"/></span>
                                </td>
                           <!-- </tr>
          					<tr>-->
                                <td class="text" width="20%"><font color="red">*</font>座次</td>
                                <td class="left" width="30%">
                                	<span>
                                	<ag-Combobox style="width:226px;height:28px;"
                                        para="{	uDictionary:true,
                                        		editable:true,
                                        		dictionary:'p_zuoci'}"
                                        ng-model="gzclda.editRow.sclxx"
                                        text-Value="gzclda.editRow.sclxxName"/>
                                        </span>
                                        
                                        <span ng-show="false"><input hide-novalidate="true" 
                                		alias="座次" required 
                                		ng-model="gzclda.editRow.sclxx"
                                		name="form_sclxx"/></span>
                                	<!--<input type="text" ng-model="gzclda.editRow.sclxx" class="zs-input" />-->
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>车牌号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclda.editRow.scph" class="zs-input" />
                                	
                                	    <span ng-show="false"><input hide-novalidate="true" 
                                		alias="车牌号" required 
                                		ng-model="gzclda.editRow.scph"
                                		name="form_scph"/></span>
                                </td>
                            <!--</tr>
          					<tr>-->
                                <td class="text" width="20%">保修期限</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclda.editRow.sbxqx" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>采购日期</td>
                                <td class="left" width="30%">
                                	<span>
                                	<ag-Datebox id='fi_dcgrq' editable='true' showcurday='gzclda.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:226px;height: 28px"
		                        		ng-model="gzclda.editRow.dcgrq" >
							   		</ag-Datebox></span>
							   		
							   		
							   		<span ng-show="false"><input hide-novalidate="true" 
                                		alias="采购日期" required 
                                		ng-model="gzclda.editRow.dcgrq"
                                		name="form_dcgrq"/></span>
                                	<!--<input type="text" ng-model="gzclda.editRow.dcgrq" class="zs-input" />-->
                                </td>
                          <!--  </tr>
          					<tr>-->
                                <td class="text" width="20%"><font color="red">*</font>采购价格</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclda.editRow.scgjg" class="zs-input" />
                                	
                                	<span ng-show="false"><input hide-novalidate="true" 
                                		alias="采购价格" required 
                                		ng-model="gzclda.editRow.scgjg"
                                		name="form_scgjg"/></span>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>采购部门</td>
                                <td class="left" width="30%">
                                	<ag-Combobox class="zs-input" style="width:226px;height: 28px" 
											fn='dptidEdit'
											para="{ uDictionary:true,
													dictionary:'p_department',
													pidField:'pid',
													nfn:'schedulefzr',
		                    						leafField:'leaf'}"
											ng-model="gzclda.editRow.scgbm"
											text-Value="gzclda.editRow.scgbmName"/>
											
									<span ng-show="false"><input hide-novalidate="true" 
                                		alias="采购部门" required 
                                		ng-model="gzclda.editRow.scgbm"
                                		name="form_scgbm"/></span>
                                	<!--<input type="text" ng-model="gzclda.editRow.scgbm" class="zs-input" />-->
                                </td>
                           <!-- </tr>
          					<tr>-->
                                <td class="text" width="20%"><font color="red">*</font>采购人</td>
                                <td class="left" width="30%">
                                	<span>
                                	<ag-Combotree class="zs-input" style="width:226px;height: 28px" 
										fn='schedulefzr'
										para="{ uDictionary:false,
												pidField:'userid',
												checkbox:false,
												valueField:'userid',
												textField:'userName',
												onlyLeafCheck:true,
												bindFn:'schedule',
												pfn:'dptidEdit',
												foreignField:'departmentId',
												editable:true,
												keyField:'userid',
												queryFields:'userid,userName,departmentId',
												pageSize:1200,
												maxNavs:6,
												queryObject:{},
												ssn:'vuserinfo'}"
										ng-model="gzclda.editRow.scgr"
										text-Value="gzclda.editRow.scgrmc"></ag-Combotree>
										
										</span>
										<span ng-show="false"><input hide-novalidate="true" 
                                		alias="采购人" required 
                                		ng-model="gzclda.editRow.scgr"
                                		name="form_scgr"/></span>
                                	<!--<input type="text" ng-model="gzclda.editRow.scgr" class="zs-input" />-->
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>采购原因</td>
                                <td class="left" width="30%" colspan="3">
                                	<textarea type="text" ng-model="gzclda.editRow.scgyy" class="zs-input" 
                                		style="width:95%;height: 180px;"></textarea>
                                		
                                			<span ng-show="false"><input hide-novalidate="true" 
                                		alias="采购原因" required 
                                		ng-model="gzclda.editRow.scgyy"
                                		name="form_scgyy"/></span>
                                	<!--<input type="text" ng-model="gzclda.editRow.scgyy" class="zs-input" />-->
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>联系方式</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" ng-model="gzclda.editRow.slxff" class="zs-input" />
                                	
                                		<span ng-show="false"><input hide-novalidate="true" 
                                		alias="联系方式" required 
                                		ng-model="gzclda.editRow.slxff"
                                		name="form_slxff"/></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">车辆状态</td>
                                <td class="left" width="30%">
                                	<ag-Combobox style="width:175px;height:28px;"
                                        para="{	uDictionary:true,
                                        		dictionary:'p_clzt'}"
                                        ng-model="gzclda.editRow.clzt"
                                        text-Value="gzclda.editRow.clztName" />
                                	<!--<input type="text" ng-model="gzclda.editRow.clzt" class="zs-input" />-->
                                </td>
      
                                <td class="text" width="20%">车辆信息附件</td>
                                <td class="left" width="30%">
                                	<ag-Upload ng-model="gzclda.editRow.clxxfj" 
				                        para="{}"></ag-Upload>
                                </td>
                            </tr>
          					<!--<tr>
                                <td class="text" width="20%">使用情况</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclda.editRow.ssyqk" class="zs-input" />
                                </td>
      
                                <td class="text" width="20%">维修情况</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclda.editRow.swxqk" class="zs-input" />
                                </td>
                            </tr>-->
          					<!--<tr>
                                <td class="text" width="20%">油卡充值情况</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" ng-model="gzclda.editRow.sykczqk" class="zs-input" />
                                </td>
                            </tr>-->
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzclda', gzclda.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>